package di;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan("di")
public class Config {
    // 组件扫描分别扫描了张飞类和丈八蛇矛类
    // 这两个类对象都保存到Spring容器了
}




